0ca4057b9c54842a97e978d8019771a31d02e5fa,android/app/src/main/java/rocks/crimp/crimp/hello/HelloFragmentAdapter.java,HelloFragmentAdapter,setCanDisplay,#number#,40

Before Change


                throw new IllegalStateException("We should have 3 tabs exactly.");
            }

            ViewGroup vgTab = (ViewGroup) vg.getChildAt(2);
            int tabChildsCount = vgTab.getChildCount();
            for (int i = 0; i < tabChildsCount; i++) {
                View tabViewChild = vgTab.getChildAt(i);

After Change


                throw new IllegalStateException("We should have "+COUNT+" tabs exactly.");
            }

            ViewGroup vgTab = (ViewGroup) vg.getChildAt(ROUTE_TAB_POSITION);
            int tabChildsCount = vgTab.getChildCount();
            for (int i = 0; i < tabChildsCount; i++) {
                View tabViewChild = vgTab.getChildAt(i);